home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / dev / c / PhoneLogDevKit.lha / PhoneLog / src / PhoneLog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-16  |  5.1 KB  |  159 lines

  1.  /* Copyright © 1996 Kai Hofmann. All rights reserved. */
  2.  
  3.  #ifndef PHONELOG
  4.    struct PhoneLogEntry {
  5.                          char        Number[30+1];
  6.                          char        Name[80+1];
  7.                          char        Reason[80+1];
  8.  
  9.                          char        ProgramName[32];
  10.                          unsigned short    ProgramVersion;
  11.                          unsigned short    ProgramRevision;
  12.  
  13.                          unsigned short    StartDay;
  14.                          unsigned short    StartMonth;
  15.                          int        StartYear;
  16.                          unsigned short    StartHour;
  17.                          unsigned short    StartMin;
  18.                          unsigned short    StartSec;
  19.  
  20.                          unsigned short    EndDay;
  21.                          unsigned short    EndMonth;
  22.                          int        EndYear;
  23.                          unsigned short    EndHour;
  24.                          unsigned short    EndMin;
  25.                          unsigned short    EndSec;
  26.  
  27.                          unsigned short    Hours;
  28.                          unsigned short    Mins;
  29.                          unsigned short    Secs;
  30.                         };
  31.  
  32.  
  33.    struct PhoneLogMarker {
  34.                           char           ProgramName[32];
  35.                           unsigned short ProgramVersion;
  36.                           unsigned short ProgramRevision;
  37.                           char           MarkName[256];
  38.                          };
  39.  
  40.    #define PHONELOG
  41.  #endif
  42.  
  43. /*
  44. ******* PhoneLog/struct PhoneLogEntry ***************************************
  45. *
  46. *   NAME
  47. *    struct PhoneLogEntry -- Structure for log file entries (V33)
  48. *
  49. *   RECORD
  50. *    struct PhoneLogEntry {
  51. *                          char            Number[30+1];
  52. *                          char            Name[80+1];
  53. *                          char            Reason[80+1];
  54. *
  55. *                          char            ProgramName[32];
  56. *                          unsigned short  ProgramVersion;
  57. *                          unsigned short  ProgramRevision;
  58. *
  59. *                          unsigned short  StartDay;
  60. *                          unsigned short  StartMonth;
  61. *                          int             StartYear;
  62. *                          unsigned short  StartHour;
  63. *                          unsigned short  StartMin;
  64. *                          unsigned short  StartSec;
  65. *                          unsigned short  EndDay;
  66. *                          unsigned short  EndMonth;
  67. *                          int             EndYear;
  68. *                          unsigned short  EndHour;
  69. *                          unsigned short  EndMin;
  70. *                          unsigned short  EndSec;
  71. *
  72. *                          unsigned short  Hours;
  73. *                          unsigned short  Mins;
  74. *                          unsigned short  Secs;
  75. *                            };
  76. *
  77. *   FUNCTION
  78. *    Used by PhoneLogGenerator and PhoneLogParser
  79. *
  80. *   ELEMENTS
  81. *    Number          - Phone Number that was called
  82. *    Name            - Name of the host that was called
  83. *    Reason          - Reason why the host is called
  84. *    ProgramName     - Name of the program that makes the call
  85. *    ProgramVersion  - Version of the program that makes the call
  86. *    ProgramRevision - Revision of the program that makes the call
  87. *    StartDay        - Day of the start of the call
  88. *    StartMonth      - Month of the start of the call
  89. *    StartYear       - Year of the start of the call
  90. *    StartHour       - Hour of the start of the call
  91. *    StartMin        - Min of the start of the call
  92. *    StartSec        - Sec of the start of the call
  93. *    EndDay          - Day of the end of the call
  94. *    EndMonth        - Month of the end of the call
  95. *    EndYear         - Year of the end of the call
  96. *    EndHour         - Hour of the end of the call
  97. *    EndMin          - Min of the end of the call
  98. *    EndSec          - Sec of the end of the call
  99. *    Hours           - Hours of the call duration
  100. *    Mins            - Minutes of the call duration
  101. *    Secs            - Seconds of the call duration
  102. *
  103. *   EXAMPLE
  104. *    See PhoneLogGenerator and PhoneLogParser
  105. *
  106. *   NOTES
  107. *    None
  108. *
  109. *   BUGS
  110. *    No known bugs.
  111. *
  112. *   SEE ALSO
  113. *    PhoneLogGenerator,PhoneLogParser, struct PhoneLogMarker
  114. *
  115. *****************************************************************************
  116. *
  117. *
  118. */
  119.  
  120. /*
  121. ******* PhoneLog/struct PhoneLogMarker **************************************
  122. *
  123. *   NAME
  124. *    struct PhoneLogMarker -- Structure for log file marks (V33)
  125. *
  126. *   RECORD
  127. *    struct PhoneLogMarker {
  128. *                           char           ProgramName[32];
  129. *                           unsigned short ProgramVersion;
  130. *                           unsigned short ProgramRevision;
  131. *                           char           MarkName[256];
  132. *                             };
  133. *
  134. *   FUNCTION
  135. *    Used by PhoneLogGenerator and PhoneLogParser
  136. *
  137. *   ELEMENTS
  138. *    ProgramName     - Name of the program that wrote the mark
  139. *    ProgramVersion  - Version of the program that wrote the mark
  140. *    ProgramRevision - Revision of the program that wrote the mark
  141. *    MarkName        - Name of the mark
  142. *
  143. *   EXAMPLE
  144. *    See PhoneLogGenerator and PhoneLogParser
  145. *
  146. *   NOTES
  147. *    None
  148. *
  149. *   BUGS
  150. *    No known bugs.
  151. *
  152. *   SEE ALSO
  153. *    PhoneLogGenerator,PhoneLogParser, struct PhoneLogEntry
  154. *
  155. *****************************************************************************
  156. *
  157. *
  158. */
  159.